import type {ModalFormProps} from "@ant-design/pro-form/lib/layouts/ModalForm";
import CModalForm from "@/components/CModalForm";
import type {CModalFormProps} from "@/components/CModalForm/type";
import fields from "@/pages/system/dict/type/list/components/DictTypeAdd/config/fields";


export default (props: { edit: boolean } & ModalFormProps) => {
  // @ts-ignore
  const modalFormProps: CModalFormProps<any> = {
    ...props,
    groupList: fields({edit: props.edit})
  }
  return (
    <CModalForm{...modalFormProps}>
    </CModalForm>
  )
}
